﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using FastDFS.WinForm.Forms;

namespace FastDFS.WinForm
{
    public partial class MainForm : Form
    {
        public MainForm()
        {
            InitializeComponent();
            tsslInfo.Text = string.Format("fdfs traker: {0}:{1}",
                AppConfig.DFS_TRACKER_HOST
                , AppConfig.DFS_TRACKER_PORT

                );
        }

        private void open(Form form)
        {
            form.MdiParent = this;
            form.Show();
        }

        private void tsbApi_Click(object sender, EventArgs e)
        {
            open(new ApiForm());
        }

        private void tsbMonitorForm_Click(object sender, EventArgs e)
        {
           open(new MonitorForm());            
        }

        private void tsbSvnForm_Click(object sender, EventArgs e)
        {
            open(new FileSvnForm());
        }
    }
}
